<template>
	<view class="ikz-detail">
		<ikz-loading :css-data="loading_css"></ikz-loading>
		<view class="ikz-detail-content">
			<rich-text :nodes="nodes"></rich-text>
		</view>
	</view>
</template>

<script>
	import ikzLoading from '@/pages/Component/Public/Loading/loading.vue';
	var app = getApp( );
	import ikz from '@/pages/Common/tools.js';
	export default {
		components: {
			ikzLoading
		},
		data( ) {
			return {
				nodes: '',
				loading_css: {
					display: 'flex',
				},

			};
		},
		onLoad( ) {
			this.aboutInfo( ( res ) => {
				this.loading_css.display = 'none';
			} );
		},
		methods: {
			//请求页面数据
			aboutInfo( fn ) {
				var path = '/index/config';
				var data = {};
				ikz.post( path, data, res => {
					if ( res.data.code ) {
						this.nodes = res.data.data.user_agreement
					} else {
						uni.showModal( {
							title: '提示',
							content: res.data.data,
							showCancel: false,
							success: function( res ) {}
						} );
					}
					fn( );
					// if(that.pull_status){
					// 	this.$emit("change",'pull');
					// }
				} );
			}
		}
	};
</script>

<style>
	page {
		width: 100%;
		height: 100%;
		background: #F3F3F3;
	}

	.ikz-detail {
		width: 100%;
		height: 100%;
		background: #fff;
	}

	.ikz-detail-top {
		box-sizing: border-box;
		width: 100%;
		padding: 40rpx;
		border-bottom: 1px solid #eee;
	}

	.ikz-detail-title {
		font-weight: 800;
	}

	.ikz-detail-time {
		color: #888888;
		font-size: 25rpx;
		margin-top: 15rpx;
	}

	.ikz-detail-content {
		box-sizing: border-box;
		padding: 40rpx;
	}
</style>